<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title>大量影像上传</title>
	<link rel="stylesheet" href="../../resources/others/bootstrap/bootstrap.min.css" />
	<link rel="stylesheet" href="../../resources/others/bootstrap-fileinput/css/fileinput.min.css" />
	<link rel="stylesheet" href="../../resources/others/bootstrap-table/css/bootstrap-table.min.css" />
	<link rel="stylesheet" href="../../resources/others/bootstrap-datetimepicker/css/bootstrap-datetimepicker.min.css">
	<link rel="stylesheet" href="../../resources/css/common/common.css" />
	<link rel="stylesheet" href="../../resources/css/manager/scyxInfo.css" />
	<script src="../../resources/others/jquery/jquery.min.js"></script>
	<script src="../../resources/others/jquery/jquery.form.min.js"></script>
	<script src="../../resources/others/bootstrap/bootstrap.min.js"></script>
	<script src="../../resources/others/bootstrap-fileinput/js/fileinput.min.js"></script>
	<script src="../../resources/others/bootstrap-fileinput/js/fileinput_locale_zh.js"></script>
	<script src="../../resources/others/bootstrap-table/js/bootstrap-table.min.js"></script>
	<script src="../../resources/others/bootstrap-table/js/bootstrap-table-zh-CN.js"></script>
	<script src="../../resources/others/bootstrap-datetimepicker/js/bootstrap-datetimepicker.min.js"></script>
	<script src="../../resources/others/bootbox/bootbox.min.js"></script>
	<script src="../../resources/js/common/common.js"></script>
</head>
<script type="text/javascript">
	$(document).ready(function(){
	    $("#yx_btn").click(function(){
	 		if(checkform("#form_yx")){
		    	$.ajax({ 
		    		url: "colmanage.addYxList_mass.do?yxpath="+$("#yxpath").val(),
		    		type : "POST",
		    		dataType:"json",
		    		success:function(data){
		 			    if(data.status=="OK"){
			    			$("#yxpath").val("");
		    				alert("增加影像信息成功！");
			    			//alertFunc("增加影像信息成功！");
					    }else if(data.status=="login"){
		    				alert("登陆超时，请重新登陆！");
							//alertFunc("登陆超时，请重新登陆！");
			 			    window.location.href = "/cnmuseum_file/entry.html";
					    }else{
		    				alert(data.msg);
					    	//alertFunc(data.error);
					    }
		    		}
		    	})
				/* var option = {
	 				url : ProjectName+"/colmanage.addYxList_mass.do",
					async: true,
					type: "POST",
					dataType: 'json',
					success : function(data){	
		 			    if(data.status=="ok"){
			    			alertFunc("增加影像信息成功！");
			    			$("#yxpath").val("");
					    }else if(data.status=="login"){
							alertFunc("登陆超时，请重新登陆！");
			 			    window.location.href = "/cnmuseum_file/entry.html";
					    }else{
					    	alertFunc(data.error);
					    }
	 				}
	 			};
	 			$("#form_yx").ajaxSubmit(option); */
	 		}
	    });
	    $("#logoutid").click(function(){
	    	$.ajax({ 
	    		url: "root.logout.do",
	    		type : "POST",
	    		dataType:"json",
	    		success:function(data){
	    			if(data.status=='OK'){
	    				alert("退出成功！");
		    			//alertFunc("退出成功！");
		 			    window.location.href = "/cnmuseum_file/entry.html";
	    			}else{
	    				alert("退出异常！");
						//alertFunc("退出异常！");
	    			}
	    		}
	    	})
	    });
	});
</script>
<body>
	<!-- 面包屑begin -->
	<ul class="breadcrumb">
		<i>当前位置：</i>
		<li class="active"><a href="#">批量上传影像</a></li>
	</ul>
	<div style="position: fixed;top: 20px;right: 40px;">
		<a href="#" id="logoutid" onclick="logout();" style="font-size:14px;">退出</a>
	</div>
	<!-- 面包屑end -->
	<div class="container">
		<!--影像开始---------------------------------------------------->
		<div role="tabpanel" class="tab-pane" id="yingxiang">
			<div>
				<form class="form-horizontal" role="form" id="form_yx">
					<div class="modal-body">
						<div class="form-group" id="yxwjdiv">
							<label class="col-sm-3 control-label"><span class='red'>*</span>文件路径：</label>
							<div class="col-sm-7">
								<input type="text" style="width: 440px;" class="form-control"
									id="yxpath" name='yxpath' required='false' value="" />
							</div>
						</div>
					</div>

				</form>
				<div class="modal-footer">
					<input type=hidden id="iszgww" name="iszgww" value="">
					<button type="button" class="btn btn-primary" id="yx_btn">批量上传</button>
				</div>
				<div id="commandlist_div"></div>
				<div id="logfilelist"></div>
			</div>
		</div>
		<!--影像结束---------------------------------------------------->
	</div>
</body>
</html>
